package com.erp.mapper;

import com.erp.entity.Customer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pyj
 * @since 2020-11-07
 */
@Mapper
public interface CustomerMapper{

    Customer findCustomerByName(String name);

    List<Customer> getAll();

    int add(Customer customer);

    int delete(Integer id);

    int update(Customer customer);
}
